/*
 * jiyan
 */
package com.jiyan.products.service;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

import com.rzhkj.core.base.BaseMybatisDAO;
import com.rzhkj.core.base.BaseMybatisSVImpl;

import com.jiyan.products.facade.ProductsSoldSV;
import com.jiyan.products.dao.ProductsSoldDAO;
import com.jiyan.products.entity.ProductsSold;


/**
 * 已销售设备
 * @author jiyan
 */
@Component
@Service
public class ProductsSoldSVImpl extends BaseMybatisSVImpl<ProductsSold,Long> implements ProductsSoldSV{


	@Resource
	private ProductsSoldDAO productsSoldDAO;

    @Override
    protected BaseMybatisDAO getBaseMybatisDAO(){
		return productsSoldDAO;
	}


	/**
	 * 加载对象已销售设备 通过code
	 * @param code 编码
	 * @return ProductsSold
	 */
     @Override
     public ProductsSold loadByCode(java.lang.String code) {
		return productsSoldDAO.loadByCode(code);
	 }

     /**
      * 删除对象已销售设备
	   * @param id * @param code 编码
      */
	 @Override
     public void delete(java.lang.Long id,java.lang.String code) {
		productsSoldDAO.delete(id,code);
	 }



}